// 颜色
$color-tip: #c8cdd4; // 辅助提示色
$color-bg: #f5f5f5; // 背景色
$color-line: #eeeeee; //分割线
$price-color: #fa436a;
$texts-color: #c9c7c7;
// 文字
$font-size-base: 28upx; // 14px，正文文字
$font-size-toolbar: 32upx; // 16px，用于导航栏、标题
$font-size-tag: 24upx; // 12px，辅助性文字/大标签
$font-size-goods-tag: 22upx; // 11px，商品列表角标
$font-size-activity-tag: 20upx; // 10px，活动角标（拼团等角标）/小标签文字

$margin-both: 30upx; //外边距 左右
$margin-updown: 20upx; // 外边距 上下
$border-radius: 10upx; //圆角
$padding: 20upx; //内边距

.head-wrap {
	background: #fff;
	position: fixed;
	width: 100%;
	left: 0;
	z-index: 1;

	.search-wrap {

		flex: 0.5;
		padding: 30upx 30upx 0;
		font-size: $font-size-tag;
		display: flex;
		align-items: center;
		.input-wrap {
			flex: 1;
			display: flex;
			justify-content: space-between;
			align-items: center;
			background: $color-bg;
			height: 70upx;
			padding-left: 10upx;
			border-radius: 70upx;
			input {
				width: 90%;
				background: $color-bg;
				font-size: $font-size-tag;
				height: 50upx;
				padding: 10upx 25upx 10upx 40upx;
				line-height: 50upx;
				border-radius: 40upx;
			}
			text {
				font-size: $font-size-toolbar;
				color: $color-tip;
				width: 80upx;
				text-align: center;
				margin-right: 20upx;
			}
		}
		.category-wrap,
		.list-style {
			display: flex;
			justify-content: center;
			align-items: center;
			.iconfont {
				font-size: 50upx;
				color: $color-tip;
			}
			text {
				display: block;
				margin-top: 60upx;
			}
		}
	}

	.sort-wrap {
		display: flex;
		padding: 10upx 20upx 10upx 0;
		> view {
			flex: 1;
			text-align: center;
			font-size: $font-size-base;
			height: 60upx;
			line-height: 60upx;
		}
		.comprehensive-wrap {
			display: flex;
			justify-content: center;
			align-items: center;
			.iconfont-wrap {
				display: inline-block;
				margin-left: 10upx;
				width: 40upx;
				.iconfont {
					font-size: $font-size-toolbar;
					line-height: 1;
					margin-bottom: 5upx;
				}
			}
		}
		.price-wrap {
			display: flex;
			justify-content: center;
			align-items: center;
			.iconfont-wrap {
				display: flex;
				justify-content: center;
				align-items: center;
				flex-direction: column;
				width: 40upx;
				.iconfont {
					float: left;
					font-size: 24upx;
					line-height: 1;
					height: 20upx;
					color: #909399;
				}
			}
		}
		.screen-wrap {
			display: flex;
			justify-content: center;
			align-items: center;
			.iconfont-wrap {
				display: inline-block;
				margin-left: 10upx;
				width: 40upx;
				.iconfont {
					font-size: $font-size-toolbar;
					line-height: 1;
				}
			}
		}
	}
}

.category-list-wrap {
	height: 100%;
	.class-box {
		display: flex;
		flex-wrap: wrap;
		padding: 0 $padding;
		view {
			width: calc((100% - 60upx) / 3);
			font-size: $font-size-goods-tag;
			margin-right: 20upx;
			height: 60upx;
			line-height: 60upx;
			text-align: center;
			margin-bottom: 12upx;
			flex-shrink: 0;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			background: rgba(245, 245, 245, 1);
			border-radius: 5upx;
			&:nth-of-type(3n) {
				margin-right: 0;
			}
		}
	}
	.first {
		font-size: $font-size-tag;
		display: block;
		// background: $page-color-base;
		padding: 20upx;
	}
	.second {
		border-bottom: 2upx solid $color-line;
		padding: 20upx;
		display: block;
		font-size: $font-size-tag;
	}
	.third {
		padding: 0 20upx 20upx;
		overflow: hidden;
		font-size: $font-size-tag;
		> view {
			display: inline-block;
			margin-right: 20upx;
			margin-top: 20upx;
		}
		.uni-tag {
			padding: 0 20upx;
		}
	}
}

.screen-wrap {
	.title {
		font-size: $font-size-tag;
		padding: $padding;
		background: #f6f4f5;
	}
	scroll-view {
		height: 85%;
		.item-wrap {
			border-bottom: 1px solid #f0f0f0;
			.label {
				font-size: $font-size-tag;
				padding: $padding;
				view {
					display: inline-block;
					font-size: 60upx;
					height: 40upx;
					vertical-align: middle;
					line-height: 40upx;
				}
			}

			.list {
				margin: $margin-updown $margin-both;
				overflow: hidden;
				> view {
					display: inline-block;
					margin-right: 25upx;
					margin-bottom: 25upx;
				}
				.uni-tag {
					padding: 0 $padding;
					font-size: $font-size-goods-tag;
					background: #f5f5f5;
					height: 52upx;
					line-height: 52upx;
					border: 0;
				}
			}
			.price-wrap {
				display: flex;
				justify-content: center;
				align-items: center;
				padding: $padding;
				input {
					flex: 1;
					background: #f5f5f5;
					height: 52upx;
					width: 182upx;
					line-height: 50upx;
					font-size: $font-size-goods-tag;
					border-radius: 50upx;
					text-align: center;
					&:first-child {
						margin-right: 10upx;
					}
					&:last-child {
						margin-left: 10upx;
					}
				}
			}
		}
	}
	.footer {
		height: 90upx;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		display: flex;
		//position: absolute;
		bottom: 0;
		width: 100%;
		.footer-box {
			border-top-right-radius: 0;
			border-bottom-right-radius: 0;
			margin: 0;
			width: 40%;
		}
		.footer-box1 {
			border-top-left-radius: 0;
			border-bottom-left-radius: 0;
			margin: 0;
			width: 40%;
		}
	}
}
.safe-area {
	bottom: 68upx !important;
}
.empty {
	margin-top: 100upx;
}
.buy-num {
	font-size: $font-size-activity-tag;
}
.icon {
	width: 34upx;
	height: 30upx;
}
.list-style-new {
	display: flex;
	align-items: center;
	.line {
		width: 4upx;
		height: 28upx;
		background-color: rgba(227, 227, 227, 1);
		margin-right: 60upx;
	}
}
.h-line {
	width: 37upx;
	height: 2upx;
	background-color: $color-tip;
}

.lineheight-clear {
	line-height: 1 !important;
}
// 商品列表单列样式
.goods-list.single-column {
	// height: calc(100% - 200upx);
	.goods-item {
		padding: 26upx;
		background: #fff;
		margin: $margin-updown $margin-both;
		border-radius: $border-radius;
		display: flex;
		position: relative;

		.goods-img {
			width: 200upx;
			height: 200upx;
			overflow: hidden;
			border-radius: $border-radius;
			margin-right: 20upx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.info-wrap {
			flex: 1;
			display: flex;
			flex-direction: column;
		}

		.name-wrap {
			flex: 1;
		}

		.goods-name {
			font-size: $font-size-base;
			line-height: 1.3;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
			height: 68upx;
		}

		.introduction {
			line-height: 1;
			margin-top: 10upx;
		}

		.discount-price {
			display: inline-block;
			font-weight: bold;
			line-height: 1;
			margin-top: 16upx;
            color: $price-color;
			.unit {
				margin-right: 6upx;
			}
		}

		.pro-info {
			display: flex;
			margin-top: 16upx;

			.delete-price {
				text-decoration: line-through;
				flex: 1;
                color: $texts-color;
                font-size: 28upx;
				.unit {
					margin-right: 6upx;
				}
			}

			& > view {
				line-height: 1;

				&:nth-child(2) {
					text-align: right;
				}
			}
		}

		.member-price-tag {
			display: inline-block;
			width: 60upx;
			line-height: 1;
			margin-left: 6upx;

			image {
				width: 100%;
			}
		}
	}
}
// 商品列表双列样式
.goods-list.double-column {
	display: flex;
	flex-wrap: wrap;
	margin: 0 $margin-both;
	padding-top: $margin-updown;

	.goods-item {
		flex: 1;
		position: relative;
		background-color: #fff;
		flex-basis: 48%;
		max-width: calc((100% - 30upx) / 2);
		margin: 0 $margin-both $margin-updown 0;
		border-radius: $border-radius;

		&:nth-child(2n) {
			margin-right: 0;
		}

		.goods-img {
			position: relative;
			overflow: hidden;
			padding-top: 100%;
			border-top-left-radius: $border-radius;
			border-top-right-radius: $border-radius;

			image {
				width: 100%;
				position: absolute;
				top: 50%;
				left: 0;
				transform: translateY(-50%);
			}
		}

		.goods-tag {
			color: #fff;
			line-height: 1;
			padding: 8upx 16upx;
			position: absolute;
			border-bottom-right-radius: $border-radius;
			top: 0;
			left: 0;
			font-size: $font-size-goods-tag;
		}

		.goods-tag-img {
			position: absolute;
			border-top-left-radius: $border-radius;
			width: 80upx;
			height: 80upx;
			top: 0;
			left: 0;
			z-index: 5;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.info-wrap {
			padding: 0 26upx 26upx 26upx;
		}

		.goods-name {
			font-size: $font-size-base;
			line-height: 1.3;
			overflow: hidden;
			text-overflow: ellipsis;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
			margin-top: 20upx;
			height: 68upx;
		}

		.discount-price {
			display: inline-block;
			font-weight: bold;
			line-height: 1;
			margin-top: 16upx;
            font-size: 14upx;
			.unit {
				margin-right: 6upx;
			}
		}

		.pro-info {
			display: flex;
			margin-top: 16upx;

			.delete-price {
				text-decoration: line-through;
				flex: 1;

				.unit {
					margin-right: 6upx;
				}
			}

			& > view {
				line-height: 1;

				&:nth-child(2) {
					text-align: right;
				}
			}
		}

		.member-price-tag {
			display: inline-block;
			width: 60upx;
			line-height: 1;
			margin-left: 6upx;

			image {
				width: 100%;
			}
		}

	}

}
.sale{
  font-size: 28upx;
}
